<?php /* Smarty version 2.6.16, created on 2009-04-16 06:19:42
         compiled from FavoriteMusic.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'language', 'FavoriteMusic.html', 7, false),array('function', 'url', 'FavoriteMusic.html', 22, false),array('function', 'img', 'FavoriteMusic.html', 22, false),)), $this); ?>
<table style="width: 100%;" cellpadding="2" cellspacing="2">
	<tr>
		<td class="border2">
			<table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
					<td class="block_header"><?php echo smarty_function_language(array('text' => 'favorite_music'), $this);?>
</td>
				</tr>
			</table>
<?php if ($this->_tpl_vars['aAlbums'] || $this->_tpl_vars['aSongs']): ?>
    <?php if (count ( $this->_tpl_vars['aAlbums'] )): ?>
            <table cellspacing="5" cellpadding="4" border="0" width="100%">
            <tr>
               <td class="block_header"><?php echo smarty_function_language(array('text' => 'albums'), $this);?>
</td>
            </tr>
    <?php $_from = $this->_tpl_vars['aAlbums']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['aAlbum']):
?>
            <tr>
                <td class="border2">
                    <table cellspacing="0" cellpadding="2">
                        <tr>
                            <td style="font-size: 7pt; width: 30%; text-align: center;">
                            <a href="<?php echo smarty_function_url(array('link' => 'public.music.album','id' => $this->_tpl_vars['aAlbum']['album_id']), $this);?>
"><?php echo smarty_function_img(array('src' => ($this->_tpl_vars['sAlbumsUrl']).($this->_tpl_vars['aAlbum']['album_id']).".jpg",'src_def' => 'design/pic/noimage_120.jpg','class' => 'pic1','onmouseover' => "this.className='pic2';",'onmouseout' => "this.className='pic1';"), $this);?>
</a><br />
                            <br/>
                            <a class="link_action" href="<?php echo smarty_function_url(array('link' => 'current','delete' => $this->_tpl_vars['aAlbum']['favorite_id']), $this);?>
" onclick="return sure('');">[ <?php echo smarty_function_language(array('text' => 'delete_from_favorites'), $this);?>
 ]</a>
                            </td>
                            <td class="color" style="font-size: 8pt; vertical-align: top; width: 70%;padding:4px;">
                            <b><?php echo smarty_function_language(array('text' => 'musician'), $this);?>
:</b>&nbsp;<a class="link_description" href="<?php echo smarty_function_url(array('link' => 'public.music.musician','id' => $this->_tpl_vars['aAlbum']['musician_id']), $this);?>
"><?php echo $this->_tpl_vars['aAlbum']['musician_name']; ?>
</a><br /><br />
                            <b><?php echo smarty_function_language(array('text' => 'album'), $this);?>
:</b>&nbsp;<a class="link_description" href="<?php echo smarty_function_url(array('link' => 'public.music.album','id' => $this->_tpl_vars['aAlbum']['album_id']), $this);?>
"><?php echo $this->_tpl_vars['aAlbum']['album_title']; ?>
</a><br /><br />
                            <?php if ($this->_tpl_vars['aAlbum']['album_year']): ?><b><?php echo smarty_function_language(array('text' => 'year'), $this);?>
:</b>&nbsp;<?php echo $this->_tpl_vars['aAlbum']['album_year'];  endif; ?>
                            </td>
                        </tr>
                    </table>
                    <br/>
                </td>
            </tr>
    <?php endforeach; endif; unset($_from); ?>
            </table>
    <?php endif; ?>
    <?php if (count ( $this->_tpl_vars['aSongs'] )): ?>
            <table cellspacing="5" cellpadding="4" border="0" width="100%">
            <tr>
                <td class="block_header"><?php echo smarty_function_language(array('text' => 'songs'), $this);?>
</td>
            </tr>
    <?php $_from = $this->_tpl_vars['aSongs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['songs'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['songs']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['aSong']):
        $this->_foreach['songs']['iteration']++;
?>
            <tr <?php if ($this->_foreach['songs']['iteration'] % 2): ?>class="border13"<?php endif; ?>>
                <td width="65%" style="font-size:8pt;padding:5px;"><a class="link_description" href="<?php echo smarty_function_url(array('link' => 'public.music.musician','id' => $this->_tpl_vars['aSong']['musician_id']), $this);?>
"><?php echo $this->_tpl_vars['aSong']['musician_name']; ?>
</a> - <a class="link_description" href="<?php echo smarty_function_url(array('link' => 'public.music.song','id' => $this->_tpl_vars['aSong']['song_id']), $this);?>
"><?php echo $this->_tpl_vars['aSong']['song_title']; ?>
</a></td>
                <td width="30%"><a class="link_action" href="<?php echo smarty_function_url(array('link' => 'current','delete' => $this->_tpl_vars['aSong']['favorite_id']), $this);?>
" onclick="return sure('');">[ <?php echo smarty_function_language(array('text' => 'delete_from_favorites'), $this);?>
 ]</a></td>
                <td width="5%" align="right"><?php if (! $this->_tpl_vars['aSong']['song_is_actual'] && ! $this->_tpl_vars['aSong']['song_owner']): ?><a href="<?php echo smarty_function_url(array('link' => 'current','makeactual' => $this->_tpl_vars['aSong']['song_id']), $this);?>
"><img src="design/pic/donate.gif" height="16" width="16" alt="" /></a>&nbsp;&nbsp;<?php endif; ?></td>
            </tr>
    <?php endforeach; endif; unset($_from); ?>
            </table>
    <?php endif;  else: ?>
<div class="message_info"><?php echo smarty_function_language(array('text' => 'there_is_no_favorite_music_yet'), $this);?>
</div>
<?php endif; ?>


		</td>
	</tr>
</table>